/*
 * in Roman Mithology, Minerva was the goddes of wisdom, science, arts and literature.
 * here Minerva Module is respondible for the inner syntax to html translation of
 * mathematical formulas.
*/

package testomaticclient;
public class Minerva {
    
    static String example = 
          
          "<html>f'(x) = "+noLineFrac("lim","h -> 0")+frac("f(x+h) - f(x)","x<sup>-1</sup>")+"</html>";
    
    
    
    private static String frac(String up, String down) {
        return "<table><tr><td align=\"center\">"+up+"<hr noshade=\"noshade\" size=\"1\">"+down+"</td></table>";
    }
    
    private static String noLineFrac(String up, String down) {
        return "<table><tr><td align=\"center\"><sub>"+up+"</sub></td></tr><tr><td><sup>"+down+"</sup></td></table>";
    }
    
    public Minerva() {
    }
}
